package com.reader.api.mapper.magazine;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.reader.api.entity.magazine.ReaderMagazine;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @@description     Mapper 接口
 * @author           jiahaikun
 * @date             2018-11-06
 */
public interface ReaderMagazineMapper extends BaseMapper<ReaderMagazine> {
        /**
         * 杂志列表页接口
         * @param period
         * @return
         */
        List<Map<String, Object>>  selectPeriodListPage(@Param("period") Integer period);

        /**
         * 杂志列表页-全量
         * @return
         */
        List<HashMap<String, Object>>  selectYearListPage();

        /**
         * 杂志目录页接口
         * @return
         */
        List<LinkedHashMap<String, Object>>  selectColumnListPage(@Param("magazineId") String magazineId);
}